const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // 上线需要吧路径改为 '/'
  publicPath: './',
  outputDir: 'site',
  pages: {
    admin: {
      entry: 'src/pages/admin/main.js',
      template: 'public/admin.html',
      filename: 'admin.html',
      title: '枫桪物语管理页'
    },
    user: {
      entry: 'src/pages/user/main.js',
      template: 'public/index.html',
      filename: 'index.html',
      title: '枫桪物语世界'
    },
    login: {
      entry: 'src/pages/login/main.js',
      template: 'public/login.html',
      filename: 'login.html',
      title: '枫桪物语登录'
    }
  },
  devServer: {
    host: '127.0.0.1',
    port: 80,
    https: false,
    hot: true
  },
  // configureWebpack: {
  //   devtool: 'source-map'
  // },
  productionSourceMap: false
})
